#include "Time.h"
int main() {
	Time t1(23, 59, 59);
	t1.printf();
	t1.setHour(12);
	t1.setMinute(30);
	t1.setSecond(15);
	t1.printf();
	cout << "hour is  " << t1.getHour() << "\n minute is  " << t1.getMinute() << "\n second is  " << t1.getSecond() << endl;
	Time t2;
	t2.printf();
	t2.setTime(1, 2, 3);
	t2.printf();
	Time t3(12);
	t3.printf();
	Time t4(23, 59, 58);
	t4.printf();
	t4.nextSecond();
	t4.printf();
	t4.nextSecond();
	t4.printf();
	Time t5(25, 61, 99);
	t5.printf();
	t5.nextSecond();
	t5.printf();
	system("pause");
	return 0;
}